STEP 6: Let's call the function so we see theme set the background.

The parameter variable name when we define the function is theme. The parameter value when we call the function is the argument "moon". When the function runs this time, theme will have the value "moon".

  • In LOGIC and add Function Call with Parameter. Rename the call to draw_card().
  • Change the function call argument from my_var to the string "moon". Now the function sets the background!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)